--[[
	获取空闲玩家列表
]]
local filename = "getidlerole.lua"

local timetool = require "timetool"
local skynet = require "skynet"
local cluster = require "skynet.cluster"
local filelog =require "filelog"

local service = nil
local CMD = {
	service = nil
}

function CMD.process(rid, msgbody)
	if not service then
		service = CMD.service
	end
	local ridlist = skynet.call(".roletablestate", "lua", "get_idle_role", msgbody.rolenum)	
	return {idelrolelist = ridlist}
end

return CMD